Optimal. Leaf size=34 \[ -\frac{6 x+5}{3 x^2+5 x+2}+6 \log (x+1)-6 \log (3 x+2) \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.0218507, antiderivative size = 34, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 12, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.25 \[ -\frac{6 x+5}{3 x^2+5 x+2}+6 \log (x+1)-6 \log (3 x+2) \]
Antiderivative was successfully verified.
[In] Int[(2 + 5*x + 3*x^2)^(-2),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 1.95132, size = 29, normalized size = 0.85 \[ - \frac{6 x + 5}{3 x^{2} + 5 x + 2} + 6 \log{\left (x + 1 \right )} - 6 \log{\left (3 x + 2 \right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate(1/(3*x**2+5*x+2)**2,x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.0188732, size = 33, normalized size = 0.97 \[ \frac{-6 x-5}{3 x^2+5 x+2}+6 \log (x+1)-6 \log (3 x+2) \]
Antiderivative was successfully verified.
[In] Integrate[(2 + 5*x + 3*x^2)^(-2),x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.014, size = 32, normalized size = 0.9 \[ -3\, \left ( 2+3\,x \right ) ^{-1}-6\,\ln \left ( 2+3\,x \right ) - \left ( 1+x \right ) ^{-1}+6\,\ln \left ( 1+x \right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int(1/(3*x^2+5*x+2)^2,x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 0.722376, size = 46, normalized size = 1.35 \[ -\frac{6 \, x + 5}{3 \, x^{2} + 5 \, x + 2} - 6 \, \log \left (3 \, x + 2\right ) + 6 \, \log \left (x + 1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((3*x^2 + 5*x + 2)^(-2),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.217436, size = 72, normalized size = 2.12 \[ -\frac{6 \,{\left (3 \, x^{2} + 5 \, x + 2\right )} \log \left (3 \, x + 2\right ) - 6 \,{\left (3 \, x^{2} + 5 \, x + 2\right )} \log \left (x + 1\right ) + 6 \, x + 5}{3 \, x^{2} + 5 \, x + 2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((3*x^2 + 5*x + 2)^(-2),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 0.312059, size = 29, normalized size = 0.85 \[ - \frac{6 x + 5}{3 x^{2} + 5 x + 2} - 6 \log{\left (x + \frac{2}{3} \right )} + 6 \log{\left (x + 1 \right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(1/(3*x**2+5*x+2)**2,x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.209539, size = 49, normalized size = 1.44 \[ -\frac{6 \, x + 5}{3 \, x^{2} + 5 \, x + 2} - 6 \,{\rm ln}\left ({\left | 3 \, x + 2 \right |}\right ) + 6 \,{\rm ln}\left ({\left | x + 1 \right |}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((3*x^2 + 5*x + 2)^(-2),x, algorithm="giac")
[Out]